package com.xagcdx.group1.service.impl;

import com.xagcdx.group1.bean.Depart;
import com.xagcdx.group1.dao.DepartMapper;
import com.xagcdx.group1.service.DepartService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  鏈嶅姟瀹炵幇绫�
 * </p>
 *
 * @author grou1
 * @since 2020-06-09
 */
@Service
@Transactional
public class DepartServiceImpl extends ServiceImpl<DepartMapper, Depart> implements DepartService {
@Autowired
private DepartMapper departMapper;

@Override
public Integer counts(Integer page, Integer limit) {
	// TODO Auto-generated method stub
	return departMapper.counts(page,limit);
}

@Override
public List<Depart> departListPage(int i, Integer limit,String dname) {
	// TODO Auto-generated method stub
	return departMapper.departListPage(i,limit,dname);
}
}
